package com.training.java.core.inheritance;

public class SedanCarDemo {

	public static void main(String[] args) {
		
		
		//constructor
		SedanCar sedan= new SedanCar(4567,"Sedan XX", "hybrid"," Black", 150,2014,100,false);
		
		
				
		sedan.start();
		sedan.stop();		
		sedan.drive();
		System.out.println("I' Sedan   " + sedan.getVinNumber());
		System.out.println("Model :   "+sedan.getModel());
		System.out.println("make  "+sedan.getMake());
		System.out.println("Color  "+sedan.getCarColor());
		System.out.println("MAx Speed  "+sedan.getMaxSpeed());
		System.out.println("my speed is   :"+sedan.getMilesPerHour());
	}

}
